import styled from "styled-components";

import GedantuijianBg from '../../../../../assets/images/bg_detail.bb32b2d1.jpg'
export const JingcaituijianBox = styled.div`
  position: relative;
  height: 418px;
  background: url(${GedantuijianBg}) 50% 0 repeat-x;

  overflow: hidden;
  .title{
    height: 114px;
    font-size: 24px;
    line-height: 114px;
    text-align: center;
    h2{
      letter-spacing: 20px;
    }
  }
  .fenlei{
    height: 50px;
    text-align: center;
    font-size: 15px;
    span{
      margin: 0 24px;
      
      &:hover{
        color: #31c27c;
        cursor: pointer;
      }
      &.active{
        color: #31c27c;
      }
    }
  }
  /* 覆盖 antd 样式 */
  .ant-carousel .slick-dots li.slick-active button{
    background-color: #3ac27c;

  }
  .ant-carousel .slick-dots li button{
    background-color:#999999 ;
  }
  .ant-carousel .slick-dots-bottom{
    bottom: -44px;
  }

  /* 上一个 下一个 */
  &:hover .pre{
      left:0;
  }
  &:hover .next{
      right:0;
  }
  .toggle{
    transition: all .4s;
    position: absolute;
    width: 79px;
    height: 108px;
    background: rgba(0,0,0,.05);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    &:hover{
      background: rgba(0,0,0,.1);
      cursor: pointer;
    }
  }
  .pre{
    
    left: -108px;
  }
  .next{
    right: -108px;
  }
  /* 覆盖  antd */
  .anticon{
    font-size: 50px;
    color: #3ac27c;
  }
  /* 轮播图的内容 */
  .banner_main{
    display: flex !important;
    justify-content: space-between;
    height: 260px;
    width: 100% ;
    a{
      display: block;
      height: 100%;
      width: 590px;
    }
    .banner_main_box{
      position: relative;
      /* background-color: red; */
      height: 100%;
      width: 590px;
      img{
        width: 100%;
        height: 100%;
      }
    }
  }
`

export const ImgI = styled.i`
        position: absolute;
        right: 0;
        top: 20px;
        width: 100px;
        height: 30px;
        background-color: #fcf7f4;
        font-size: 14px;
        line-height: 30px;
        text-align: center;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        color:${props => props.titleColor}
`